package com.project.finance.mobile.exchange.service.impl;

import com.project.finance.common.mapper.TbExchangeMapper;

import com.project.finance.common.po.TbExchange;
import com.project.finance.exchange.service.ExchangeService;
import com.project.finance.mobile.exchange.service.MobileExchangeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Slf4j
@Service
public class MobileExchangeServiceImpl implements MobileExchangeService {
    @Autowired
    private TbExchangeMapper tbExchangeMapper;
    /*@Override
    public BigDecimal selectexRate(String country) {
        System.out.println(country+"------");
        BigDecimal v = tbExchangeMapper.selectexRate(country);
        System.out.println(v+"-------");
        return v;
    }*/



   //查询所有
    @Override
    public List<TbExchange> listExchange() {
        return tbExchangeMapper.selectAll();
    }



    @Override
    public BigDecimal selecteRate(Integer exchangeId) {
        return tbExchangeMapper.selecteRate(exchangeId);
    }

}
